package com.ruoyi.project.configureSystem.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.List;

/**
 * 指标信息对象 v_datainfo
 * 
 * @author wangshuo
 * @date 2020-05-17
 */
public class VDatainfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 主键id */
    private String ids;

    /** 主键id */
    private Long areaId;

    /** 主键id */
    private Integer isStation;

    /** 厂站编码 */
    @Excel(name = "厂站编码")
    private String stationcode;

    /** 厂站名称 */
    @Excel(name = "厂站名称")
    private String stationname;

    /** 指标名称 */
    @Excel(name = "指标名称")
    private String infoname;

    /** vstatoin中主键ID */
    @Excel(name = "vstatoin中主键ID")
    private Long dataitemid;

    /** 指标标识 */
    @Excel(name = "指标标识")
    private String datacode;

    /** 指标是否显示(0,不显示，1，显示) */
    @Excel(name = "指标是否显示(0,不显示，1，显示)")
    private Integer ifshow;

    /** 指标单位(0,1,2,3,4) */
    @Excel(name = "指标单位(0,1,2,3,4)")
    private Long indexUnit;

    /** 数据类型 0:开关量，1：模拟量，2：字符类型 */
    @Excel(name = "数据类型 0:开关量，1：模拟量，2：字符类型")
    private Integer datamold;

    /** 工艺或数据类型名称 */
    @Excel(name = "工艺或数据类型名称")
    private String prodataName;

    /** 读写 r:只读,rw：读写,w:只写 */
    @Excel(name = "读写 r:只读,rw：读写,w:只写")
    private String rw;

    /** 过高值 */
    @Excel(name = "过高值")
    private Long high;

    /** 超上限 */
    @Excel(name = "超上限")
    private Long highlimit;

    /** 过低值 */
    @Excel(name = "过低值")
    private Long low;

    /** 超下限 */
    @Excel(name = "超下限")
    private Long lowlimit;

    /** 控制指标json */
    @Excel(name = "控制指标json")
    private String controldata;

    /** 标签1 */
    @Excel(name = "标签1")
    private String label1;

    /** 标签0 */
    @Excel(name = "标签0")
    private String label0;

    private Long vstationId;

    private List<Long> stationIds;

    /** 工艺类型名称 */
    private String typeName;

    private BigDecimal numValue;

    private String textValue;

    private List<VDatainfo> children;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public Long getAreaId() {
        return areaId;
    }

    public void setAreaId(Long areaId) {
        this.areaId = areaId;
    }

    public Integer getIsStation() {
        return isStation;
    }

    public void setIsStation(Integer isStation) {
        this.isStation = isStation;
    }

    public void setStationcode(String stationcode)
    {
        this.stationcode = stationcode;
    }

    public String getStationcode() 
    {
        return stationcode;
    }
    public void setStationname(String stationname) 
    {
        this.stationname = stationname;
    }

    public String getStationname() 
    {
        return stationname;
    }
    public void setInfoname(String infoname) 
    {
        this.infoname = infoname;
    }

    public String getInfoname() 
    {
        return infoname;
    }
    public void setDataitemid(Long dataitemid) 
    {
        this.dataitemid = dataitemid;
    }

    public Long getDataitemid() 
    {
        return dataitemid;
    }
    public void setDatacode(String datacode) 
    {
        this.datacode = datacode;
    }

    public String getDatacode() 
    {
        return datacode;
    }
    public void setIfshow(Integer ifshow) 
    {
        this.ifshow = ifshow;
    }

    public Integer getIfshow() 
    {
        return ifshow;
    }
    public void setIndexUnit(Long indexUnit) 
    {
        this.indexUnit = indexUnit;
    }

    public Long getIndexUnit() 
    {
        return indexUnit;
    }
    public void setDatamold(Integer datamold) 
    {
        this.datamold = datamold;
    }

    public Integer getDatamold() 
    {
        return datamold;
    }
    public void setProdataName(String prodataName) 
    {
        this.prodataName = prodataName;
    }

    public String getProdataName() 
    {
        return prodataName;
    }
    public void setRw(String rw) 
    {
        this.rw = rw;
    }

    public String getRw() 
    {
        return rw;
    }
    public void setHigh(Long high) 
    {
        this.high = high;
    }

    public Long getHigh() 
    {
        return high;
    }
    public void setHighlimit(Long highlimit) 
    {
        this.highlimit = highlimit;
    }

    public Long getHighlimit() 
    {
        return highlimit;
    }
    public void setLow(Long low) 
    {
        this.low = low;
    }

    public Long getLow() 
    {
        return low;
    }
    public void setLowlimit(Long lowlimit) 
    {
        this.lowlimit = lowlimit;
    }

    public Long getLowlimit() 
    {
        return lowlimit;
    }
    public void setControldata(String controldata) 
    {
        this.controldata = controldata;
    }

    public String getControldata() 
    {
        return controldata;
    }
    public void setLabel1(String label1) 
    {
        this.label1 = label1;
    }

    public String getLabel1() 
    {
        return label1;
    }
    public void setLabel0(String label0) 
    {
        this.label0 = label0;
    }

    public String getLabel0() 
    {
        return label0;
    }

    public Long getVstationId() {
        return vstationId;
    }

    public void setVstationId(Long vstationId) {
        this.vstationId = vstationId;
    }

    public List<Long> getStationIds() {
        return stationIds;
    }

    public void setStationIds(List<Long> stationIds) {
        this.stationIds = stationIds;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public List<VDatainfo> getChildren() {
        return children;
    }

    public void setChildren(List<VDatainfo> children) {
        this.children = children;
    }

    public String getIds() {
        return ids;
    }

    public void setIds(String ids) {
        this.ids = ids;
    }

    public BigDecimal getNumValue() {
        return numValue;
    }

    public void setNumValue(BigDecimal numValue) {
        this.numValue = numValue;
    }

    public String getTextValue() {
        return textValue;
    }

    public void setTextValue(String textValue) {
        this.textValue = textValue;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("stationcode", getStationcode())
            .append("stationname", getStationname())
            .append("infoname", getInfoname())
            .append("dataitemid", getDataitemid())
            .append("datacode", getDatacode())
            .append("ifshow", getIfshow())
            .append("indexUnit", getIndexUnit())
            .append("datamold", getDatamold())
            .append("prodataName", getProdataName())
            .append("rw", getRw())
            .append("high", getHigh())
            .append("highlimit", getHighlimit())
            .append("low", getLow())
            .append("lowlimit", getLowlimit())
            .append("controldata", getControldata())
            .append("label1", getLabel1())
            .append("label0", getLabel0())
            .toString();
    }
}
